package com.quectel.mobile.vo.training;

import com.quectel.constant.core.partyeducationtraining.TrainingItemConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author rananxin
 * @email ryan.ran@quectel.com
 * @date 2022/5/31 17:33
 */
@Data
@Schema
@AllArgsConstructor
public class StudyProgressRespVo {

    @Schema(description = "学习状态 0未学习 1学习中 2完成学习")
    private Byte studyStatus;

    @Schema(description = "学习进度")
    private BigDecimal studyProgress;

    public static StudyProgressRespVo newNotLearnedObj() {
        return new StudyProgressRespVo(TrainingItemConstants.StudyStatusEnum.NOT_LEARNED.getStudyStatus()
                , TrainingItemConstants.StudyProgressEnum.ZERO.getStudyProgress());
    }
}
